
package com.joysuch.wwyt.bp.bean;

import java.util.Date;
import java.util.List;

import cn.zlg.common.springmvc.validate.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.joysuch.wwyt.mh.bean.MhMonitoringPointBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@ApiModel(value = "仓库")
public class BpStoreHouseAddBean {

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("仓库编号")
    private String code;

    @ApiModelProperty("仓库名称")
    @NotNull(field = "库房名称")
    private String name;

    @ApiModelProperty("上级库房id")
    private Long parentId;
    @ApiModelProperty("上级库房名称")
    private String parentName;

    @ApiModelProperty("仓库位置")
   // @NotNull(field = "库房位置")
    private String location;

    @ApiModelProperty("仓库面积")
    private Double storeHouseSize;

    @ApiModelProperty("有无防火墙:N/Y")
    private String fireWallFlag;
    private String fireWallFlagName;

    @ApiModelProperty("仓库形式")
    @NotNull(field = "库房形式")
    private String storeHouseForm;

    @ApiModelProperty("设计储量")
    private Double designStock;

    @ApiModelProperty("投产日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startUseTime;

    @ApiModelProperty("是否设置自动喷淋:N/Y")
    private String autoSprayFlag;
    private String autoSprayFlagName;

    @ApiModelProperty("是否危化品仓库:N/Y")
    private String hazardChemStoreFlag;
    private String hazardChemStoreFlagName;

    @ApiModelProperty("是否剧毒化学品仓库:N/Y")
    private String hypertoxicHazardChemStoreFlag;
    private String hypertoxicHazardChemStoreFlagName;

    @ApiModelProperty("是否低温储存仓库:N/Y")
    private String lowTemperatureStoreFlag;
    private String lowTemperatureStoreFlagName;

    @ApiModelProperty("火灾危险性分类")
    private String fireDangerType;

    @ApiModelProperty("是否重点监管的危险化学品:N/Y")
    private String majorMonitoringChemFlag;
    private String majorMonitoringChemFlagName;

    @ApiModelProperty("所属重大危险源单元")
    private String majorHazardUnit;

    @ApiModelProperty("所属重大危险源单元编号")
    private String majorHazardUnitCode;

    @ApiModelProperty("监测点id")
    private List<Long> pointId;

    @ApiModelProperty("监测点信息")
    private List<MhMonitoringPointBean> mhMonitoringPointBeans;

    @ApiModelProperty("危险源id")
    private Long majorHazardId;

    @ApiModelProperty("0物资仓库,1危化品仓库")
    private Integer typeFlag;
}
